package com.casework

enum PurchaserCriteria{
    Up_Front_Buyer('Up Front Buyer'), Fix_It_First('Fix it first'), Purchaser_Requirements('Purchaser Requirements')

    String name

    PurchaserCriteria(name){
        this.name = name
    }

    String toString(){
        name
    }

    static PurchaserCriteria fromName(a){
        PurchaserCriteria.values().find{ it.name.toString() == a.toString()}
    }
}